<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s"  uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'usermag.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <center><font size="8">角色管理</font></center>
  <table width="100%" border="1">
  <tr><td width="25%">用户名</td><td width="25%">用户身份证</td><td width="25%">用户角色</td><td width="25%">操作</td></tr>
  <s:iterator value="ulist">
  <tr>
  <td colspan="4">
	<form action="useraction!userrole.action" method="post">
	<table width="100%" border="1">
	<tr><td width="25%">${userName}<input type="hidden" name="user.userId" value="${userId}"><input type="hidden" name="user.idNum" value="${userName}"></td><td width="25%">${idNum}<input type="hidden" name="user.idNum" value="${idNum}"></td><td width="25%"><s:select theme="simple" name="user.roleId" list="rolelist" listKey="roleId" listValue="roleName" value="roleId"></s:select></td><td width="25%"><input type="submit" value="更改"></td ></tr>
	</table>
	</form>  
  </td>
  </tr>
  </s:iterator>
  </table>
  </body>
</html>
